#coding=utf-8
from django.db import models

class TsinaUser(models.Model):
    class Meta:
        verbose_name = u'目标tsina用户'
        verbose_name_plural = u'目标tsina用户'

    user_id = models.CharField(max_length=100, unique=True)
    nick_name = models.CharField(max_length=100)
    message = models.TextField()
    published_at = models.DateTimeField()
    client = models.CharField(max_length=100)

    is_ated = models.BooleanField(default=False, help_text=u'用户有没有被@过,保证每个用户only一次')
    created_at = models.DateTimeField(auto_now_add=True)

    def __unicode__(self):
        return self.nick_name
